package gulimall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import gulimall.entity.Attr;
import gulimall.utils.PageUtils;
import gulimall.vo.AttrRespVo;
import gulimall.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author HLF
 * @email 1132814637@qq.com
 * @date 2022-05-04 15:04:15
 */
public interface AttrService extends IService<Attr> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttrById(AttrVo attrVo);

    List<Attr> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, String attrgroupId);
}

